package ua.org.enginer.controls.map {
	
	import com.yahoo.maps.api.markers.Marker;
	
	import flash.display.Shape;

	public class CircleMarker extends Marker {
		
		//public static const MIN_RADIUS:int = 5
		
		public var data:Object
		private var shape:Shape;

		public function CircleMarker(radius:Number=10, color:uint=0xFF0000) {
			super();
			//if (radius < MIN_RADIUS) radius = MIN_RADIUS
			if (radius <= 0) radius = 5
			
			shape=new Shape();
			shape.graphics.lineStyle(1, color, .9);
			shape.graphics.beginFill(color, .3);
			shape.graphics.drawCircle(0, 0, radius);
			shape.graphics.endFill();
			//shape.filters=[new DropShadowFilter(0, 90, 0x000, 0.7, 5, 8, 2, 2)]
			this.addChild(shape);
		}
	}
}

